public class Clock {
	
   // clock
   
	private Time currentTime = null;
	private Time alarmTime = null;
	private boolean alarmed = false;
	
	public Time getCurrentTime() {
		return currentTime;
	}
	
	public void setCurrentTime(Time currentTime) {
		this.currentTime = currentTime;
	}
	
	public Time getAlarmTime() {
		return alarmTime;
	}
	
	public void setAlarmTime(Time alarmTime) {
		this.alarmTime = alarmTime;
	}
	
	public boolean isAlarmed() {
		return alarmed;
	}
	
	public void setAlarmed(boolean alarmed) {
		this.alarmed = alarmed;
	}
	
	public void alarmOn() {
		setAlarmed(true);	
	}
	
	public void alarmOff() {
		setAlarmed(false);	
	}

	@Override
	public String toString() {
		return "Clock [Current Time= " + currentTime + ", Alarm Time= " + alarmTime
				+ ", Alarm Set= " + alarmed + "]";
           
   	}
   
   // still a clock
   //It didn't really stop being a clock at any point
}
